﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Test.Models;
using Test.Models.Interfaces;
using Ninject;
using Test.Repository;
using Test.Repository.Interfaces;
using MvcMiniProfiler;

namespace Test.Controllers.Base
{
    public class BaseController : Controller
    {
        readonly IElements _rep;
        protected IElements rep
        {
            get
            {
                return _rep;
            }
        }

        public BaseController(IElements rep)
        {
            var profiler = MiniProfiler.Current;

            using (profiler.Step("Base Controller Constructor"))
            {
                _rep = rep;
            }
        }
    }
}